Q3Quaternion_SetRotateXYZ
You can use theQ3Quaternion_SetRotateXYZ
function to configure a quaternion having a specified rotation around the x, y, and z axes.
TQ3Quaternion *Q3Quaternion_SetRotateXYZ ( TQ3Quaternion *quaternion, float xAngle, float yAngle, float zAngle);
quaternion
- A quaternion.
xAngle
- The desired angle of rotation around the x axis, in radians.
yAngle
- The desired angle of rotation around the y axis, in radians.
zAngle
- The desired angle of rotation around the z axis, in radians.
DESCRIPTION
TheQ3Quaternion_SetRotateXYZ
function returns, as its function result and in thequaternion
parameter, a quaternion that rotates an object by the specified angles around the x, y, and z axes.